package com.gjy.design.decorator.s1;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 10:10:26
 */
public abstract class CoffeeDecorator implements Coffee {

    private final Coffee delegate;

    public CoffeeDecorator(Coffee delegate) {
        this.delegate = delegate;
    }

    @Override
    public double cost() {
        return delegate.cost();
    }

    @Override
    public String getDescription() {
        return delegate.getDescription();
    }

}
